package com.wgworkshop.pems.service;

import com.wgworkshop.pems.model.HolidayModel;

import java.util.List;

/**
 * 假期服务接口。
 * Created by wlc on 2017/7/9.
 */
public interface HolidayService {
    HolidayModel save(HolidayModel holidayModel);

    void delete(Long id);

    HolidayModel update(Long id, HolidayModel holidayModel);

    HolidayModel update(HolidayModel holidayModel);

    HolidayModel findOne(Long id);

    List<HolidayModel> findAll();

    List<HolidayModel> findByNameContaining(String name);

    boolean exists(Long id);

    void checkExists(Long id);
}
